package com.im.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 群组表
 *
 * @author yunZhouJiaDi
 */
@Data
@TableName("cluster")
@Accessors(chain = true)
public class Cluster {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("群id")
    private String clusterId;

    @ApiModelProperty("群组名")
    private String name;

    @ApiModelProperty("群头像")
    private String icon;

    @ApiModelProperty("群主id")
    private String ownerId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("群公告")
    private String notice;

    @ApiModelProperty("加群方式（0:直接加入 1:同意后加入）")
    private Integer joinType;

    @ApiModelProperty("是否禁言（0:否 1:是）")
    private Integer mute;

    @ApiModelProperty("群状态（1:正常 0:解散）")
    private Integer status;

}
